<h1>New article</h1>

<%= error_messages_for :article %>

<% form_for(:article, :url => articles_path) do |f| %>
  <% fields_for :entry do |d| %>
  <p>
    <b>Title</b><br />
    <%= d.text_field :title %>
  </p>

  <p>
    <b>Excerpt</b><br />
    <%= f.text_field :excerpt %>
  </p>

  <p>
    <b>Content</b><br />
    <%= f.text_area :content %>
  </p>

  <p>
    <b>Category</b>
    <%= d.collection_select :holder_id, @weblog.categories, :id, :name %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>
<% end %>

<%= link_to 'Back', articles_path %>
